Versions:
stagelint is a command-line developer tool from abemedia that runs commands such as linters and formatters on staged Git files. Rather than checking an entire repository, it restricts the configured commands to the files that have been added to the Git staging area, which is the set of changes about to be committed. This makes it a natural fit for Git hooks, in particular pre-commit hooks, where code should be checked and formatted quickly before a commit is created. The tool belongs to the category of code quality and Git workflow utilities. Typical use cases are enforcing a consistent code style across a team, catching lint errors before they reach the shared repository and keeping commit checks fast in large projects, since only changed files are processed. The current release is version 0.2.1, and several versions are available in the catalog.
Tags: